package br.fafica.poo2.rightcode.thread;

import java.util.ArrayList;

public class ExibicaoThread <E> extends Thread{
	
	private ArrayList <E> elementoArray = null;
	
	public ExibicaoThread(ArrayList <E> elementoArray){
		this.elementoArray = elementoArray;
	}
	
	public void run(){
		try {
			for(E elemento : elementoArray){
				System.out.println(elemento);
				Thread.sleep(4000);
			}
		} catch (InterruptedException e) {
			return;
		}
	}
}
